package com.jeff.android.lab.android.lifecycle.lifecycle;

import androidx.annotation.NonNull;
import androidx.lifecycle.DefaultLifecycleObserver;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.OnLifecycleEvent;

import com.jeff.utils.LogUtil;

public class Java8LifecycleObserver implements DefaultLifecycleObserver {

    @Override
    public void onCreate(@NonNull LifecycleOwner owner) {
        LogUtil.d("dingfeng", "Java8LifecycleObserver onCreate");
    }

    @Override
    public void onStart(@NonNull LifecycleOwner owner) {
        LogUtil.d("dingfeng", "Java8LifecycleObserver onStart");
    }

    @Override
    public void onResume(@NonNull LifecycleOwner owner) {
        LogUtil.d("dingfeng", "Java8LifecycleObserver onResume");
    }

    @Override
    public void onPause(@NonNull LifecycleOwner owner) {
        LogUtil.d("dingfeng", "Java8LifecycleObserver onPause");
    }

    @Override
    public void onStop(@NonNull LifecycleOwner owner) {
        LogUtil.d("dingfeng", "Java8LifecycleObserver onStop");
    }

    @Override
    public void onDestroy(@NonNull LifecycleOwner owner) {
        LogUtil.d("dingfeng", "Java8LifecycleObserver onDestroy");
    }

}
